
package com.compuvest.tld;

// <editor-fold defaultstate="collapsed" desc="import">
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.tagext.TagSupport;
// </editor-fold>

public class Bottom extends TagSupport {

// <editor-fold defaultstate="collapsed" desc="doStartTag()">

    @Override
    public int doStartTag() throws JspException {

        try {
            String serverName = pageContext.getServletContext().getInitParameter("http");
            String infoLink = pageContext.getServletContext().getInitParameter("info");

            StringBuilder line = new StringBuilder(100);
            line.append("<table id='cv_btm'>");
            line.append("<colgroup><col width='50%'><col width='50%'></colgroup>");
            line.append("<tr>");
            line.append("<td colspan=2 align=center>");
            line.append("<div>");
            line.append("<a href='").append(serverName).append("'>Home</a> | ");
            line.append("<a href='").append(infoLink).append("AboutUs.jsp").append("'>About Us</a> | ");
            line.append("<a href='").append(infoLink).append("ContactUs.jsp").append("'>Contact Us</a> | ");
            line.append("<a href='").append(infoLink).append("CustomerService.jsp").append("'>Customer Service</a> | ");
            line.append("<a href='").append(infoLink).append("Resellers.jsp").append("'>Resellers</a> | ");
            line.append("<a href='").append(infoLink).append("SiteMap.jsp").append("'>Site Map</a>");
            line.append("</div>");
            line.append("</td>");
            line.append("</tr>");
            line.append("<tr class='bt_lst'>");
            line.append("<td>&nbsp;&nbsp;All Rights Reserved&copy; ");
            line.append(pageContext.getServletContext().getInitParameter("Copyrights")).append("</td>");
            line.append("<td align=right><b>888.644.7017</b>&nbsp;&nbsp;</td>");
            line.append("</tr>");
            line.append("</table>");

            pageContext.getOut().print(line.toString());
        }
        catch(java.io.IOException e) {
            throw new JspTagException("com.compuvest.tlg.Bottom: " + e.getMessage());
        }

        return SKIP_BODY;
    }
// </editor-fold>

// <editor-fold defaultstate="collapsed" desc="doEndTag()">

    @Override
    public int doEndTag() {
        return EVAL_PAGE;
    }
// </editor-fold>

}
